{extends file='layout/index-base.tpl'}

{block name='main-content'}
<section id="content-holder" class="container-fluid container">
  {*include file='layout/main-slider.tpl'*}
  {*inculde file='layput/best-book.tpl'*}
  {block name='feature-books'}
  {if !$is_mobile}
  <!-- Start BX Slider holder -->
    {include file='layout/feature-book.tpl'}
  <!-- End BX Slider holder -->
  {/if}
  {/block}
  
  <section class="row-fluid">
    {block name='left-content'}
    <!-- Start Blog Section -->
    <section class="span8 blog-section" id="danh-sach-truyen">
      <div class="heading-bar">
        <h2 class="red-text">Danh sách truyện mới nhất tại ThanhPhoGame</h2>
        <span class="h-line"></span> 
      </div>
      <div class="sixteen columns">
          <ul class="book-list">
          {foreach from=$listBooksAll item=book}
          <li>
            <span class="cate {$book.category_uname}"><a href="{$root_url}truyen-{$book.category_uname}.html">{$book.category_name}</a></span> - 
            <span class="book"><a href="{$root_url}truyen-{$book.category_uname}/{$book.book_uname}.html">{$book.name}</a></span>
            <span class="max-chap">
              <a href="{$root_url}truyen-{$book.category_uname}/{$book.book_uname}/chuong-{$book.lastChapter.last_chapter_no}-{$book.lastChapter.chapter_uname}.html">{if isset($book.lastChapter.volume_no)}Quyển {$book.lastChapter.volume_no}{/if} -- Chương {$book.lastChapter.last_chapter_no} --</a> | 
              {if $book.status == 1}Full{else}Còn tiếp{/if}
            </span>
            <div class="clearboth"></div>
          </li>
          {/foreach}
        </ul>
      </div>
      <div class="pagination">  
        {$pageList}
      </div>
    </section>
    <!-- End Blog Section -->
    {/block}
    {block name='right-content'}
    <!-- Start Testimonials Section -->
    <section class="span4 testimonials">
      {if isset($promotion2)}
      <a href="{$promotion1.link}" title="{$promotion1.title}">
        <img title="{$promotion1.title}" 
           alt="{$promotion1.alt}" 
           src="{$root_url}public/frontend/hinh-anh/quang-cao/{$promotion1.image}" />
      </a>
      {/if}
    </section>
    <!-- End Testimonials Section -->
    {/block}
  </section>

  {block name='feature-author'}
  <!-- Start Featured Author -->
    {*include file='layout/feature-author.tpl'*}
  <!-- End Featured Author -->
  {/block}
</section>
{/block}
